com.atlassian.jira.rpc.soap.beans
Class RemoteAvatar

java.lang.Object
  extended by com.atlassian.jira.rpc.soap.beans.RemoteAvatar

public class RemoteAvatar
extends java.lang.Object

A remote API representation of the Avatar entity.

Since:
v4.0

Field Summary
private  java.lang.String base64Data
           
private  java.lang.String contentType
           
private  long id
           
private  boolean isSystem
           
private  java.lang.String owner
           
private  java.lang.String type
           
 
Constructor Summary
RemoteAvatar(long id, java.lang.String contentType, java.lang.String owner, boolean system, java.lang.String type, java.lang.String base64Data)
           
 
Method Summary
 java.lang.String getBase64Data()
          Provides the image data for the avatar.
 java.lang.String getContentType()
          Provides the MIME type of the image.
 long getId()
          Provides the database unique identifier for the Avatar.
 java.lang.String getOwner()
          Returns the entity to which this avatar belongs if it is custom.
 java.lang.String getType()
          Provides a string reprentation of the type of avatar, e.g.
 boolean isSystem()
          Indicates whether the avatar is a system or custom avatar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

private final long id

type

private final java.lang.String type

contentType

private final java.lang.String contentType

base64Data

private final java.lang.String base64Data

owner

private final java.lang.String owner

isSystem

private final boolean isSystem
Constructor Detail

RemoteAvatar

public RemoteAvatar(long id,
                    java.lang.String contentType,
                    java.lang.String owner,
                    boolean system,
                    java.lang.String type,
                    java.lang.String base64Data)
Method Detail

getContentType

public java.lang.String getContentType()
Provides the MIME type of the image.

Returns:
the Content Type.

getId

public long getId()
Provides the database unique identifier for the Avatar.

Returns:
the id.

isSystem

public boolean isSystem()
Indicates whether the avatar is a system or custom avatar.

Returns:
true only if this is a system avatar.

getOwner

public java.lang.String getOwner()
Returns the entity to which this avatar belongs if it is custom. E.g. if it is a project, the project id.

Returns:
the owner or null for system avatars.

getType

public java.lang.String getType()
Provides a string reprentation of the type of avatar, e.g. "project".

Returns:
the type.

getBase64Data

public java.lang.String getBase64Data()
Provides the image data for the avatar.

Returns:
the data as a base 64 encoded String.